package com.springboot.service;

import com.springboot.dto.MessageView;
import com.springboot.model.AssistantListFormKey;
import com.springboot.model.MessageInform;
import com.springboot.model.OrderForm;

import java.util.ArrayList;

/**
 * @ description:患者端“我的通知”业务
 * @ date       :2020/12/22

*/

public interface PatientMyInformService {
    //根据患者在消息通知表里查找今天的通知和未读通知
    public ArrayList<MessageView> showMessageByPatientId(Integer patientId);
    //根据消息编号把患者消息状态改为已读
    public int updateMessageByMessageId(Integer messageId);
    //根据患者预约事件增加通知，返回新增的消息ID
    public int insertMessage(MessageInform messageInform);
    //根据医生ID发相同通知给助理
    public int insertAssistantMessageInformByDoctorId(Integer doctorId,Integer messageId);
    //根据bookId查找预约表单
    public OrderForm findOrderFormByBookId(Integer bookId);
    //患者端一键已读
    public int readAllMessage(Integer patientId);
    //返回患者未读消息数量
    public int findUnreadNum(Integer patientId);

}
